<template>
    <div class="content">
        标题：{{ data.title }} <br>
        医案详情： <span> {{ data.content.split("|").join("\n") }} </span><br>
        医生: {{ data.doctor }} <br>
        出自：{{ data.reference }} <br>
        症：{{ ner["症"]   }} <br>
        法：{{ ner["法"]   }} <br>
        方：{{ ner["方"]   }} <br>
        药：{{ ner["药"]   }} <br>
        证：{{ ner["证"]   }} <br>
    </div>
</template>
<script>


export default {
    name: "YiAnDetail",
    data() {
        return {
            data: {
                title: "",
                content: "",
                doctor: "",
                reference: "",
                analyse: ""
            },
            ner:{
                    

            }
        }
    },
    created() {
        let data = localStorage.getItem("yian")
        if (data!=null) {
            let object = JSON.parse(data)
            this.data = object
            console.log(object)
            this.ner = JSON.parse(object.analyse.replace("\n",""))
        }
    }
}

</script>

<style lang="scss">

.content {
    white-space: pre-wrap; 
}

</style>